package com.zjz.studynotes.dao;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

import com.zjz.studynotes.LoginActivity;
import com.zjz.studynotes.bean.LoginUserInfo;

import java.util.List;

/**
 * Description:
 * Author: zjz
 * Date:2025/5/5 13:37
 */
@Dao
public interface LoginUserInfoDao {

    @Insert
    void insert(LoginUserInfo... userInfos);

    @Query("SELECT * FROM LoginUserInfo")
    List<LoginUserInfo> queryAll();

    @Query("SELECT * FROM LoginUserInfo where userName =:userName and password =:password")
    List<LoginUserInfo> queryInfo(String userName, String password);
}
